﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NB.MGJ.Common
{
    public static class Constant
    {
        /// <summary>
        /// Token默认加密字符
        /// </summary>
        public static string _En_String
        {
            get
            {
                return ConfigurationManager.AppSettings["_En_String"]; ;
            }
        }

        public static string _filePath 
        {
            get
            {
                return ConfigurationManager.AppSettings["UpLoadFiles"]; ;
            }
        }


        public static string GetGuid32
        {
            get
            {
                return Guid.NewGuid().ToString().Replace("-", "");
            }
        }

        /// <summary>
        /// 码申请流水号前缀
        /// </summary>
        public static string MSQSerialNum
        {
            get
            {
                return "MSQ" + DateTime.Now.ToString("yyyyMMddHHmmssfff");
            }
        }

        /// <summary>
        /// 码分配流水号前缀
        /// </summary>
        public static string MFPSerialNum
        {
            get
            {
                return "MFP" + DateTime.Now.ToString("yyyyMMddHHmmssfff");
            }
        }
    }
}
